package com.fdd.op.sdk.request.api.seal;

import com.fdd.op.sdk.ApiRuleException;
import com.fdd.op.sdk.BaseFddRequest;
import com.fdd.op.sdk.constants.Constants;
import com.fdd.op.sdk.internal.mapping.RequestField;
import com.fdd.op.sdk.response.api.seal.AddAuthorizeResponse;

import java.util.Map;

public class AddAuthorizeRequest extends BaseFddRequest<AddAuthorizeResponse> {
    @Override
    public String getApiMethodName() {
        return "/base/api/seal/addAuthorize";
    }

    @Override
    public Map<String, Object> getTextParams() {
        return null;
    }

    @Override
    public Class<AddAuthorizeResponse> getResponseClass() {
        return AddAuthorizeResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getHttpMethod() {
        return Constants.METHOD_POST;
    }

    @RequestField
    private String sealId;

    @RequestField
    private String accountId;

    @RequestField
    private String tpAccountId;

    @RequestField
    private String expiryDateBegin;

    @RequestField
    private String expiryDateEnd;

    @RequestField
    private String tpAuthorizerAccountId;

    public String getSealId() {
        return sealId;
    }

    public void setSealId(String sealId) {
        this.sealId = sealId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getTpAccountId() {
        return tpAccountId;
    }

    public void setTpAccountId(String tpAccountId) {
        this.tpAccountId = tpAccountId;
    }

    public String getExpiryDateBegin() {
        return expiryDateBegin;
    }

    public void setExpiryDateBegin(String expiryDateBegin) {
        this.expiryDateBegin = expiryDateBegin;
    }

    public String getExpiryDateEnd() {
        return expiryDateEnd;
    }

    public void setExpiryDateEnd(String expiryDateEnd) {
        this.expiryDateEnd = expiryDateEnd;
    }

    public String getTpAuthorizerAccountId() {
        return tpAuthorizerAccountId;
    }

    public void setTpAuthorizerAccountId(String tpAuthorizerAccountId) {
        this.tpAuthorizerAccountId = tpAuthorizerAccountId;
    }
}
